package com.jzh.selfwallpaper.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import static com.jzh.selfwallpaper.constant.Constant.IMAGE;

public class PhoneUtil {


    /**
     * 打开相册
     * @param context
     */
    public static void openAlbum(Context context){
        //调用相册
        Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
        ((Activity)context).startActivityForResult(intent, IMAGE);
    }
}
